/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bradley.principals.core.lsp.violation;

/**
 *
 * @author Balla
 */
public class SpecialCurrentAccount extends CurrentAccount{
    private int defaultPeriod;

    public SpecialCurrentAccount(int balance, int period) {
        super(balance, period);
    }

    @Override
    public boolean closeAccount() {
        if (balance > 0 && period > defaultPeriod) {
            return true;
        } else {
            return false;
        }
    }
    
    public int getDefaultPeriod() {
        return defaultPeriod;
    }

    public void setDefaultPeriod(int defaultPeriod) {
        this.defaultPeriod = defaultPeriod;
    }
    
    
}
